import instance from "./requset";
// 数据
export let httpshop=()=>{
    return instance.get('/list')
}
// 添加
export let httpadd=(obj)=>{
    return instance.post('list',obj)
}
// 编辑
export let httpedit=(obj)=>{
    return instance.patch(`/list/${obj.id}`,obj)
}
// 删除
export let httpdel=(id)=>{
    return instance.delete(`/list/${id}`)
}